import Home from "@/pages/home/index.vue";
import Category from "@/pages/category/index.vue";
import Buy from "@/pages/buy/index.vue";
import ShopCart from "@/pages/shopCart/index.vue";
import Center from "@/pages/center/index.vue";
import Login from "@/pages/login/index.vue";
import PhoneLogin from "@/pages/login/phoneLogin/index.vue";
import EmailLogin from "@/pages/login/emailLogin/index.vue";
import Life from "@/pages/home/life/index.vue";
import New from "@/pages/home/new/index.vue";
import Register from "@/pages/login/register/index.vue";

import Search from "@/pages/search/index.vue";

import Order from "@/pages/order/index.vue";
import Detail from "@/pages/detail/index.vue";
import Pay from "@/pages/pay/index.vue";

export default [
  {
    path: "/home",
    component: Home,
    meta:{show:true},
    children: [
      {
        path: "life",
        component: Life,
        meta:{show:true},
      },
      {
        path: "new",
        component: New,
        meta:{show:true},
      },
      // {
      //   path: "/life",
      //   component: Life,
      // },
    ],
  },
  {
    path: "/category",
    component: Category,
    meta:{show:true},
  },
  {
    path: "/buy",
    component: Buy,
    meta:{show:true},
  },
  {
    path: "/shopCart",
    component: ShopCart,
    meta:{show:true},
  },
  {
    path: "/center",
    component: Center,
    meta:{show:true},
  },
  {
    path: "/login",
    component: Login,
    meta:{show:false},
  },
  {
    path: "/phone",
    component: PhoneLogin,
    meta:{show:false},
  },
  {
    path: "/email",
    component: EmailLogin,
    meta:{show:false},
  },
  {
    path: "/search",
    component: Search,
    meta:{show:false},
  },

  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/register",
    component: Register,
    meta:{show:false},
  },
  {
    path: "/order",
    component: Order,
    meta:{show:false},
  },
  {
    name: "detail",
    path: "/detail/:skuId",
    component: Detail,
    meta:{show:false},
  },
  {
    path: "/pay",
    component: Pay,
    meta:{show:false},
  },
  {
    path: "/life",
    component: Life,
  },
];
